/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package post;

/**
 *
 * @author sean
 */
public class Item {
    private String upc;    //upc for catalog lookup
    private int qty;    //amount of item purchased
    private String description; //description of item
    private double price;   //cost of item

    public Item( String u, int a )
    {
        upc = u;
        qty = a;
    }//end constructor
    public int getQty()
    {
        return qty;
    }
    public String getUpc()
    {
        return upc;
    }
    public double getSubtotal()
    {
        return price * qty;
    }
    public void setDecription( String d )
    {
        description = d;
    }
    public void setPrice( double p )
    {
        price = p;
    }
    public void setQty( int q )
    {
        qty = q;
    }
}
